import { requestClient } from '#/api/request'

/**
 *  获取列表
 */
export async function dictList(params: object = {}) {
  return requestClient.get('/admin/Dict/index', params)
}
/**
 *  获取详细
 */
export async function dictInfo(params: object = {}) {
  return requestClient.get('/admin/Dict/edit', params)
}
/**
 *  更新字段
 */
export async function dictUpdata(params: object = {}) {
  return requestClient.post('/admin/Dict/edit', params, { responseReturn: 'raw' })
}
/**
 *  更新字段
 */
export async function dictAdd(params: object = {}) {
  return requestClient.post('/admin/Dict/Add', params, { responseReturn: 'raw' })
}

/**
 *  删除字段
 */
export async function dictDelete(params: object = {}) {
  return requestClient.delete('/admin/Dict/del', params, { responseReturn: 'raw' })
}

/**
 *  获取配置列表
 */
export async function dictDataList(params: object = {}) {
  return requestClient.get('/admin/DictData/index', params)
}

/**
 *  添加配置
 */
export async function dictDataAdd(params: object = {}) {
  return requestClient.post('/admin/DictData/add', params, { responseReturn: 'raw' })
}

/**
 *  添加配置
 */
export async function dictDataEdit(params: object = {}) {
  return requestClient.post('/admin/DictData/edit', params, { responseReturn: 'raw' })
}

/**
 *  删除配置
 */
export async function dictDataDel(params: object = {}) {
  return requestClient.delete('/admin/DictData/del', params, { responseReturn: 'raw' })
}


/**
 *  获取配置详细
 */
export async function dictDataInfo(params: object = {}) {
  return requestClient.get('/admin/DictData/edit', params)
}
